package com.ndp.fb.rdb.db.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ndp.fb.rdb.api.PixelIdRdbService;
import com.ndp.fb.rdb.db.DaoTemplate;
import com.ndp.fb.rdb.db.impl.mapper.DefaultRowMapper;
import com.ndp.fb.rdb.model.PixelId;
import com.ndp.fb.rdb.model.productmanage.ProductManage;

@Service
public class PixelIdRdbServiceImpl extends DaoTemplate implements PixelIdRdbService {

    @Override
    public PixelId findByMkPixelId(Long mkPixelId) {
        String sql = "SELECT * FROM pixel_id WHERE mk_pixel_id = ?";
        return findOne(sql, new Object[]{mkPixelId}, DefaultRowMapper.autoRowMapper(PixelId.class));
    }
}
